import {Image, View} from "@tarojs/components";
import Tab from '../../../components/common/tab'

export default function (props) {
  const { item } = props
  return (
    <View className='itembox'>
      {
        item.type === 'images' ? <View className='image-boxs'>
          {item.list.map(n => <Image key={n.url} className='images' src={n.url}></Image>)}
          </View> :
        <View className='bottom'>
          <View className='left'>
            1、练习本上认真改错各写一行。(包括最后一页听写的生字)
          </View>
          <View className='right'>
            <Tab />
          </View>
        </View>
      }
    </View>
  )
}
